home *** CD-ROM | disk | FTP | other *** search
/ Australian Personal Computer 2004 July / APC0407D2.iso / workshop / onlineco / files / ImageMagick-6.0.1-Q16-windows-dll.exe / {app} / include / magick / quantize.h < prev    next >
Encoding:
C/C++ Source or Header  |  2004-03-19  |  1.1 KB  |  54 lines

  1. /*
  2.   ImageMagick Image Quantization Methods.
  3. */
  4. #ifndef _MAGICK_QUANTIZE_H
  5. #define _MAGICK_QUANTIZE_H
  6.  
  7. #if defined(__cplusplus) || defined(c_plusplus)
  8. extern "C" {
  9. #endif
  10.  
  11. typedef struct _QuantizeInfo
  12. {
  13.   unsigned long
  14.     number_colors;
  15.  
  16.   unsigned long
  17.     tree_depth;
  18.  
  19.   unsigned int
  20.     dither;
  21.  
  22.   ColorspaceType
  23.     colorspace;
  24.  
  25.   unsigned int
  26.     measure_error;
  27.  
  28.   unsigned long
  29.     signature;
  30. } QuantizeInfo;
  31.  
  32. extern MagickExport QuantizeInfo
  33.   *CloneQuantizeInfo(const QuantizeInfo *);
  34.  
  35. extern MagickExport unsigned int
  36.   GetImageQuantizeError(Image *),
  37.   MapImage(Image *,const Image *,const unsigned int),
  38.   MapImages(Image *,const Image *,const unsigned int),
  39.   OrderedDitherImage(Image *),
  40.   PosterizeImage(Image *,const unsigned long,const unsigned int),
  41.   QuantizeImage(const QuantizeInfo *,Image *),
  42.   QuantizeImages(const QuantizeInfo *,Image *);
  43.  
  44. extern MagickExport void
  45.   CompressImageColormap(Image *),
  46.   DestroyQuantizeInfo(QuantizeInfo *),
  47.   GetQuantizeInfo(QuantizeInfo *);
  48.  
  49. #if defined(__cplusplus) || defined(c_plusplus)
  50. }
  51. #endif
  52.  
  53. #endif
  54.